<!-- public/standalone-emergency-monitor.html -->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>应急管理系统大屏</title>
    <style>
        body,
        html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: #0a192f;
        }

        #app {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
    <div id="app"></div>

    <script>
        // 动态创建iframe加载Vue应用的独立页面
        const iframe = document.createElement('iframe');
        // 根据实际部署路径调整以下URL
        iframe.src = window.location.origin + window.location.pathname.split('/').slice(0, -1).join('/') + '/#/standalone/emergency-monitor';
        iframe.style.width = '100%';
        iframe.style.height = '100%';
        iframe.style.border = 'none';
        iframe.style.overflow = 'hidden';
        iframe.allowFullscreen = true;

        document.getElementById('app').appendChild(iframe);
    </script>
</body>

</html>
